﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DelegateTest1
{
    public delegate void UserControlLogHandler(object sender, UserControlLogEventArgs e);
    public class UserControlLogEventArgs : EventArgs
    {
        public UserControlLogEventArgs(LogLevel level, string logMsg)
        {
            this.LogLevel = level;
            this.LogMsg = logMsg;
        }
        public LogLevel LogLevel { get; set; }

        public string LogMsg { get; set; }
    }

    public enum LogLevel
    {
        Info,
        Error
    }
}
